package calao.plan.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

/** Task planning service.
 * @see PlanService
 */
public interface PlanServiceAsync {

	public void createResource(WorkPeriod[] workPeriods, AsyncCallback cb);	

	public void getResource(int rid, AsyncCallback cb);

	public void modifyResource(Resource resourceDetails, AsyncCallback cb);
		
	public void getTasks(int[] tids, AsyncCallback cb);
	
	public void saveTasks(Task[] taskDetails, AsyncCallback cb);
		
	public void getPeriodTasks(long periodStart, long periodEnd, AsyncCallback cb);

	public void deleteTask(int tid, AsyncCallback cb);
	
}
